FROM openjdk:8-alpine
ADD APP_NAME.jar /opt/app.jar
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# RUN apk add --no-cache wget zip net-tools
RUN mkdir /opt/targets/
RUN mkdir -p /home/download/808/
RUN mkdir -p /home/download/809/
RUN mkdir -p /home/images/
ENV ENV dev
ENV CCSN xas
EXPOSE 80
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -jar $PARAMS /opt/app.jar"]